The behavioral contract of any Carbonite controller whose purpose is to create and host Carbonite DAO instances, acting for them as a communication manager to call the functions of the underlying
data store context.
Top
Top
The following tables list the members exposed by the ICarboniteController<TDataContext, TTransaction, TTransactionCreationParameters> type.
| Name | Description | |
|---|---|---|
|
CloseDataContextOnChangesConfirmation | Gets a value indicating whether the current Carbonite controller must close the underlying data store context after successfully calling the ConfirmChanges method. |
|
PersistChangesPerOperation | Gets a value indicating whether the current Carbonite controller must commit data changes every time a persistence method of a DAO is successfully called. |
|
Transaction | Gets the current transactional context, if any, to the underlying data store. |
| Name | Description | |
|---|---|---|
|
CloseDataContext | Closes the underlying data store context. |
|
ConfirmChanges | Signals a confirm changes message to the current transactional context. This method will effectively apply into the underlying data store the changes retained in the transaction . |
|
DiscardChanges | Signals a discard changes message to the current transactional context. This method will discard the changes retained in the transaction. |
|
Get<TDao> | Gets an instance of the requested DAO type. If that type has been previously requested, the same instance is served, otherwise a new instance is created. |
|
OpenDataContext | Opens the underlying data store context. |
|
SendChanges | Signals a send changes message to the underlying data store context. This method will flush the change buffer and effectively apply those changes into the data store. |
|
StartChanges | (Overloaded) Signals a start changes message to the underlying data store context. This method sets the value of the Transaction property. |
|
With<TDao> | Gets an instance of the requested DAO type to be used for a single operation. If that type has been previously requested, the same instance is served, otherwise a new instance is created. |